﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shader
{
    public static class Extend
    {
        /// <summary>
        /// 取指针
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static unsafe IntPtr ToIntPtr(this int[] obj)
        {
            IntPtr PtrA = IntPtr.Zero;
            fixed (int* Ap = obj) return new IntPtr(Ap);
        }
    }//End Class
}
